// 封装对token的操作
const KEY = 'renting-house-token'

// 设置token
export function setItem (token) {
  localStorage.setItem(KEY, token)
}

// 获取token
export const getItem = () => {
  return localStorage.getItem(KEY)
}

// 删除token
export const removeItem = () => {
  localStorage.removeItem(KEY)
}
